package com.learn.project2.controller.admin;

import com.learn.project2.model.bo.admin.user.UserListBO;
import com.learn.project2.model.vo.admin.footprint.FootprintListVO;
import com.learn.project2.service.admin.footprint.FootprintService;
import com.learn.project2.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 会员足迹
 * @author wxy
 * @date 2022-01-08 10:55
 * @version 1.0
 */
@RequestMapping("admin/footprint")
@RestController
public class FootprintController {

    @Autowired
    FootprintService footprintService;
    @RequestMapping("list")
    public Result list(Integer userId, Integer goodsId, UserListBO userListBO){
        FootprintListVO footprintListVO = footprintService.selectFootprint(userId,goodsId,userListBO);
        return Result.ok(footprintListVO);
    }
}
